﻿using NLog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FreesenseSubAIS
{
    internal class NGSort
    {
        static ILogger _log = LogManager.GetLogger("main");
        internal static string TypeSort(int type)
        {
            _log.Trace("NG类型为：" + type);
            string str = "";
            switch (type)
            {
                case 0:
                    break;
                case 4:
                case 5:
                    str = "点缺陷";
                    break;
                case 6:
                case 7:
                case 8:
                    str = "线缺陷";
                    break;
                case 9:
                    str = "Mura缺陷";
                    break;
                case 101:
                    str = "目测";
                    break;
                default:
                    str = "其他";
                    break;
            }
            if (type < 0)
                str = "点图异常";
            return str;
        }
    }
}
